package org.pearl.spring.demo.config;

import org.pearl.spring.demo.pojo.Animal;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.context.annotation.Scope;
import org.springframework.core.env.StandardEnvironment;
import org.springframework.core.io.Resource;

import java.net.URL;

/**
 * Created by TD on 2021/9/28
 */
@Configuration
public class AnimalConfig {

    @Bean
    @Scope(value="session")
    public Animal animal() {
        return new Animal("AnimalConfig",18);
    }
}
